package com.meilai.project.entity.media;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.meilai.project.core.bean.SuperEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author ljy
 * @Date 2022/5/26 21:29
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("media_point_type_specs_relation")
@ApiModel(value = "点位规格类型表")
@Data
@Deprecated // 规格一对一后取消使用
public class MediaPointTypeSpecsRelation extends SuperEntity {
    private Long media_point_id;
    private Long media_type_specs_id;
    private Integer type;
    private Integer is_default;
    private LocalDateTime created_at;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated_at;
    private LocalDateTime deleted_at;
}
